package com.company;

import com.company.adapter.api.CommonPay;
import com.company.adapter.api.VipPay;

/**
 * 接口适配器模式测试代码
 */
public class TestForApi {

    public static void main(String[] args) {
        //普通支付
        CommonPay commonPay = new CommonPay();
        commonPay.wxPay();
        commonPay.aliPay();

        System.out.println("=========================");

        //VIP支付
        VipPay vipPay = new VipPay();
        vipPay.wxPay();
        vipPay.aliPay();
        vipPay.monthPay();
    }
}
